package com.example.shirospring.service.impl;

import com.example.shirospring.entity.User;
import com.example.shirospring.mapper.UserMapper;
import com.example.shirospring.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User getUserInfoByName(String name) {
        return userMapper.getUserInfoByName(name);
    }
}
